"use strict";
const init = function(app) {
	const mountBodyParser = function() {
		const limit = 1024 * 1024; //最多接受1M大小的body，因为需要提供对外的接口
		const bodyParser = require("body-parser");
		app.use(bodyParser.json({
			limit
		}));
		app.use(bodyParser.urlencoded({
			extended: false,
			limit
		}));
	};
	mountBodyParser();
};
module.exports = init;